<form id='{$form.name}' name='{$form.name}'>
	<table></table>
	<div class="contact_widget widget_control">
		<div class="title" style="width:345px;float:none;height:34px;">
			<div style="float:left;width:35px;">
				<a class="icon" href="{$app_index}/collab/contact_list"></a>
			</div>
			<div style="float:left;width:62px;height:30px;">
				<h2 style="width:62px;">{$form.title}</h2>
				<p style="font-size:11px;">{$form.description}</p>
			</div>
			<div  style="padding-top:3px;float:left;width:180px;height:30px;overflow:hidden;">
				<div style="width:190px;height:30px;">
				{foreach item=elem from=$searchPanel}
			    	{$elem.element}
				{/foreach}
				</div>
			</div>
			<div class="actions" style="padding-top:0px;width:57px;">
				{foreach item=elem from=$actionPanel}
			    	{$elem.element}
				{/foreach}
			</div>
		</div>
		<div style="padding-left:10px; width:340px;height:161px;">
			<div class="widget_table_gray" style="height:161px;overflow:hidden;">
				
			<!-- grid start -->
			<div class="photo_list_grid" style="overflow:hidden;padding-top:5px;">
			{assign var=row_counter value=0}
			<table  cellspacing="0" border="0">
			  <tr> 
			  {foreach item=row name=mygrid from=$dataPanel.data}
			  {if ($smarty.foreach.mygrid.iteration-1)%4 == 0}
			        </tr><tr>
			  {/if} 
			  <td>
			
				
					<div 
						id="{$form.name}-{$dataPanel.ids[$row_counter]}" normal="even" select="selected"
						class="even">		
					
			 		 <div class="grid_cell">  
						<div class="grid_cell_content">
							<div class="photo_frame">
							<a href="{$app_index}/collab/contact_detail/{$row.fld_Id}">
							{if $row.fld_photo !=""}
								<image src="{$app_url}{$row.fld_photo}" border="0" width="69" height="96"/>
							{else}
								<image src="{$image_url}/profile_photo_icon.gif" border="0" width="69" height="96"/>
							{/if}
							</a>
							</div>
							<h4 style="font-size:12px;padding:0px;margin:0px;">{$row.fld_name}</h4>
									
						</div>
						
					</div>
					<div>
						<div class="cell_type" style="background-color:#{$row.fld_color};height:24px;padding-left:2px;">							
							<div style="float:left" class="cell_share" >{$row.fld_share}</div>
							<div style="float:left;line-height:24px;padding-left:5px;">{$row.fld_type}</div>				
						</div>
					</div>	
				</div>
				
				{assign var=row_counter value=$row_counter+1}		
			    {/foreach}	
				</td>
			 </tr>
			</table>  	
			</div>
			<!-- grid end -->
			</div>
		</div>
	</div>
</form>